home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: node18_ct.html
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| C source text
| default
| |
97%
| file
| exported SGML document text
| default
| |
96%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 54 68 | 65 20 45 78 74 65 6e 64 |ts of Th|e Extend|
|000000b0| 65 64 20 74 79 70 65 20 | 64 61 74 61 20 73 74 72 |ed type |data str|
|000000c0| 75 63 74 75 72 65 3c 2f | 54 49 54 4c 45 3e 0a 0a |ucture</|TITLE>..|
|000000d0| 3c 4d 45 54 41 20 48 54 | 54 50 2d 45 51 55 49 56 |<META HT|TP-EQUIV|
|000000e0| 3d 22 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 22 20 |="Conten|t-Type" |
|000000f0| 43 4f 4e 54 45 4e 54 3d | 22 74 65 78 74 2f 68 74 |CONTENT=|"text/ht|
|00000100| 6d 6c 3b 20 63 68 61 72 | 73 65 74 3d 75 74 66 2d |ml; char|set=utf-|
|00000110| 38 22 3e 0a 3c 4d 45 54 | 41 20 4e 41 4d 45 3d 22 |8">.<MET|A NAME="|
|00000120| 76 69 65 77 70 6f 72 74 | 22 20 43 4f 4e 54 45 4e |viewport|" CONTEN|
|00000130| 54 3d 22 77 69 64 74 68 | 3d 64 65 76 69 63 65 2d |T="width|=device-|
|00000140| 77 69 64 74 68 2c 20 69 | 6e 69 74 69 61 6c 2d 73 |width, i|nitial-s|
|00000150| 63 61 6c 65 3d 31 2e 30 | 22 3e 0a 3c 4d 45 54 41 |cale=1.0|">.<META|
|00000160| 20 4e 41 4d 45 3d 22 47 | 65 6e 65 72 61 74 6f 72 | NAME="G|enerator|
|00000170| 22 20 43 4f 4e 54 45 4e | 54 3d 22 4c 61 54 65 58 |" CONTEN|T="LaTeX|
|00000180| 32 48 54 4d 4c 20 76 32 | 30 32 32 22 3e 0a 0a 3c |2HTML v2|022">..<|
|00000190| 4c 49 4e 4b 20 52 45 4c | 3d 22 53 54 59 4c 45 53 |LINK REL|="STYLES|
|000001a0| 48 45 45 54 22 20 48 52 | 45 46 3d 22 45 78 74 65 |HEET" HR|EF="Exte|
|000001b0| 6e 64 69 6e 67 2e 63 73 | 73 22 3e 0a 0a 3c 4c 49 |nding.cs|s">..<LI|
|000001c0| 4e 4b 20 52 45 4c 3d 22 | 6e 65 78 74 22 20 48 52 |NK REL="|next" HR|
|000001d0| 45 46 3d 22 6e 6f 64 65 | 32 30 5f 6d 6e 2e 68 74 |EF="node|20_mn.ht|
|000001e0| 6d 6c 22 3e 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |ml">.<LI|NK REL="|
|000001f0| 70 72 65 76 69 6f 75 73 | 22 20 48 52 45 46 3d 22 |previous|" HREF="|
|00000200| 6e 6f 64 65 31 37 5f 6d | 6e 2e 68 74 6d 6c 22 3e |node17_m|n.html">|
|00000210| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 75 70 22 20 |.<LINK R|EL="up" |
|00000220| 48 52 45 46 3d 22 6e 6f | 64 65 31 36 5f 6d 6e 2e |HREF="no|de16_mn.|
|00000230| 68 74 6d 6c 22 3e 0a 3c | 4c 49 4e 4b 20 52 45 4c |html">.<|LINK REL|
|00000240| 3d 22 6e 65 78 74 22 20 | 48 52 45 46 3d 22 6e 6f |="next" |HREF="no|
|00000250| 64 65 31 39 5f 6d 6e 2e | 68 74 6d 6c 22 3e 0a 3c |de19_mn.|html">.<|
|00000260| 2f 48 45 41 44 3e 0a 20 | 0a 3c 42 4f 44 59 20 62 |/HEAD>. |.<BODY b|
|00000270| 67 63 6f 6c 6f 72 3d 22 | 23 66 66 66 66 66 66 22 |gcolor="|#ffffff"|
|00000280| 20 74 65 78 74 3d 22 23 | 30 30 30 30 30 30 22 20 | text="#|000000" |
|00000290| 6c 69 6e 6b 3d 22 23 39 | 39 34 34 45 45 22 20 76 |link="#9|944EE" v|
|000002a0| 6c 69 6e 6b 3d 22 23 30 | 30 30 30 66 66 22 20 61 |link="#0|000ff" a|
|000002b0| 6c 69 6e 6b 3d 22 23 30 | 30 66 66 30 30 22 3e 0a |link="#0|0ff00">.|
|000002c0| 0a 3c 48 33 3e 3c 41 20 | 49 44 3d 22 53 45 43 54 |.<H3><A |ID="SECT|
|000002d0| 49 4f 4e 30 30 30 36 31 | 32 30 30 30 30 30 30 30 |ION00061|20000000|
|000002e0| 30 30 30 30 30 30 30 22 | 3e 0a 54 68 65 20 45 78 |0000000"|>.The Ex|
|000002f0| 74 65 6e 64 65 64 20 74 | 79 70 65 20 64 61 74 61 |tended t|ype data|
|00000300| 20 73 74 72 75 63 74 75 | 72 65 3c 2f 41 3e 0a 3c | structu|re</A>.<|
|00000310| 2f 48 33 3e 0a 0a 3c 50 | 3e 0a 44 65 66 69 6e 69 |/H3>..<P|>.Defini|
|00000320| 6e 67 20 61 20 6e 65 77 | 20 53 63 68 65 6d 65 20 |ng a new| Scheme |
|00000330| 74 79 70 65 20 63 6f 6e | 73 69 73 74 73 20 6d 61 |type con|sists ma|
|00000340| 69 6e 6c 79 20 74 6f 20 | 64 65 66 69 6e 65 20 61 |inly to |define a|
|00000350| 20 6e 65 77 0a 53 54 6b | 5f 65 78 74 65 6e 64 65 | new.STk|_extende|
|00000360| 64 5f 73 63 68 65 6d 65 | 5f 74 79 70 65 20 73 74 |d_scheme|_type st|
|00000370| 72 75 63 74 75 72 65 20 | 61 6e 64 20 66 69 6c 6c |ructure |and fill|
|00000380| 20 69 6e 20 74 68 69 73 | 20 66 69 65 6c 64 73 2e | in this| fields.|
|00000390| 20 54 68 69 73 0a 73 74 | 72 75 63 74 75 72 65 20 | This.st|ructure |
|000003a0| 69 73 20 64 65 66 69 6e | 65 64 20 61 73 3a 0a 3c |is defin|ed as:.<|
|000003b0| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|000003c0| 3d 22 22 20 53 52 43 3d | 22 69 6d 67 32 30 2e 70 |="" SRC=|"img20.p|
|000003d0| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|000003e0| 7b 43 6f 64 65 7d 0a 5c | 62 65 67 69 6e 7b 6c 69 |{Code}.\|begin{li|
|000003f0| 73 74 69 6e 67 7d 5b 32 | 30 30 5d 7b 32 7d 0a 74 |sting}[2|00]{2}.t|
|00000400| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 7b 0a |ypedef s|truct {.|
|00000410| 63 68 61 72 20 2a 74 79 | 70 65 5f 6e 61 6d 65 3b |char *ty|pe_name;|
|00000420| 0a 69 6e 74 20 66 6c 61 | 2e 2e 2e 0a 2e 2e 2e 28 |.int fla|.......(|
|00000430| 53 43 4d 20 78 2c 20 53 | 43 4d 20 70 6f 72 74 2c |SCM x, S|CM port,|
|00000440| 20 69 6e 74 20 6d 6f 64 | 65 29 3b 0a 7d 20 53 54 | int mod|e);.} ST|
|00000450| 6b 5f 65 78 74 65 6e 64 | 65 64 5f 73 63 68 65 6d |k_extend|ed_schem|
|00000460| 65 5f 74 79 70 65 3b 0a | 5c 65 6e 64 7b 6c 69 73 |e_type;.|\end{lis|
|00000470| 74 69 6e 67 7d 5c 65 6e | 64 7b 43 6f 64 65 7d 22 |ting}\en|d{Code}"|
|00000480| 3e 0a 3c 42 52 3e 0a 45 | 61 63 68 20 66 69 65 6c |>.<BR>.E|ach fiel|
|00000490| 64 20 6f 66 20 74 68 69 | 73 20 73 74 72 75 63 74 |d of thi|s struct|
|000004a0| 75 72 65 20 69 73 20 64 | 65 66 69 6e 65 64 20 62 |ure is d|efined b|
|000004b0| 65 6c 6f 77 0a 0a 5b 74 | 79 70 65 5f 6e 61 6d 65 |elow..[t|ype_name|
|000004c0| 5d 20 69 73 20 61 20 73 | 74 72 69 6e 67 2e 20 49 |] is a s|tring. I|
|000004d0| 74 20 64 65 6e 6f 74 65 | 73 20 74 68 65 20 65 78 |t denote|s the ex|
|000004e0| 74 65 72 6e 61 6c 20 6e | 61 6d 65 20 6f 66 20 74 |ternal n|ame of t|
|000004f0| 68 65 20 6e 65 77 20 74 | 79 70 65 2e 20 54 68 65 |he new t|ype. The|
|00000500| 0a 70 75 72 70 6f 73 65 | 20 6f 66 20 74 68 69 73 |.purpose| of this|
|00000510| 20 66 69 65 6c 64 20 69 | 73 20 6d 61 69 6e 6c 79 | field i|s mainly|
|00000520| 20 66 6f 72 20 64 65 62 | 75 67 67 69 6e 67 2e 0a | for deb|ugging..|
|00000530| 0a 3c 50 3e 0a 5b 66 6c | 61 67 73 5d 20 69 73 20 |.<P>.[fl|ags] is |
|00000540| 74 68 65 20 75 6e 69 6f | 6e 20 6f 66 20 62 69 6e |the unio|n of bin|
|00000550| 61 72 79 20 63 6f 6e 73 | 74 61 6e 74 73 2e 20 46 |ary cons|tants. F|
|00000560| 6f 72 20 6e 6f 77 2c 20 | 6f 6e 6c 79 20 74 77 6f |or now, |only two|
|00000570| 20 63 6f 6e 73 74 61 6e | 74 73 20 61 72 65 0a 64 | constan|ts are.d|
|00000580| 65 66 69 6e 65 64 3a 0a | 20 20 20 20 0a 3c 55 4c |efined:.| .<UL|
|00000590| 3e 0a 3c 4c 49 3e 45 58 | 54 5f 49 53 50 52 4f 43 |>.<LI>EX|T_ISPROC|
|000005a0| 20 6d 75 73 74 20 62 65 | 20 73 65 74 20 69 66 20 | must be| set if |
|000005b0| 74 68 65 20 6e 65 77 20 | 74 79 70 65 20 69 73 20 |the new |type is |
|000005c0| 61 20 70 72 6f 63 65 64 | 75 72 65 20 28 69 2e 65 |a proced|ure (i.e|
|000005d0| 2e 20 69 66 20 74 68 65 | 20 53 63 68 65 6d 65 0a |. if the| Scheme.|
|000005e0| 20 20 20 20 70 72 6f 63 | 65 64 75 72 65 20 6d 75 | proc|edure mu|
|000005f0| 73 74 20 61 6e 73 77 65 | 72 20 23 74 20 77 68 65 |st answe|r #t whe|
|00000600| 6e 20 63 61 6c 6c 65 64 | 20 77 69 74 68 20 74 68 |n called| with th|
|00000610| 69 73 20 6f 62 6a 65 63 | 74 29 2e 0a 3c 2f 4c 49 |is objec|t)..</LI|
|00000620| 3e 0a 3c 4c 49 3e 45 58 | 54 5f 45 56 41 4c 50 41 |>.<LI>EX|T_EVALPA|
|00000630| 52 41 4d 20 6d 75 73 74 | 20 62 65 20 73 65 74 20 |RAM must| be set |
|00000640| 69 66 20 74 68 65 20 6e | 65 77 20 74 79 70 65 20 |if the n|ew type |
|00000650| 6d 75 73 74 20 65 76 61 | 6c 75 61 74 65 73 20 69 |must eva|luates i|
|00000660| 74 73 20 70 61 72 61 6d | 65 74 65 72 73 0a 20 20 |ts param|eters. |
|00000670| 20 20 77 68 65 6e 20 75 | 73 65 64 20 61 73 20 61 | when u|sed as a|
|00000680| 20 66 75 6e 63 74 69 6f | 6e 2e 0a 20 20 20 20 0a | functio|n.. .|
|00000690| 3c 2f 4c 49 3e 0a 3c 2f | 55 4c 3e 0a 0a 3c 50 3e |</LI>.</|UL>..<P>|
|000006a0| 0a 5b 67 63 5f 6d 61 72 | 6b 5f 66 63 74 5d 20 69 |.[gc_mar|k_fct] i|
|000006b0| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |s a poin|ter to t|
|000006c0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 77 68 69 63 |he funct|ion whic|
|000006d0| 68 20 6d 61 72 6b 73 20 | 6f 62 6a 65 63 74 73 20 |h marks |objects |
|000006e0| 6f 66 20 74 68 65 0a 65 | 78 74 65 6e 64 65 64 20 |of the.e|xtended |
|000006f0| 74 79 70 65 2e 20 54 68 | 65 20 63 6f 64 65 20 61 |type. Th|e code a|
|00000700| 73 73 6f 63 69 61 74 65 | 64 20 74 6f 20 74 68 69 |ssociate|d to thi|
|00000710| 73 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 73 69 |s functi|on is si|
|00000720| 6d 70 6c 65 2e 20 49 74 | 20 63 6f 6e 73 69 73 74 |mple. It| consist|
|00000730| 73 20 74 6f 0a 63 61 6c | 6c 20 3c 41 20 49 44 3d |s to.cal|l <A ID=|
|00000740| 22 33 37 37 22 3e 3c 2f | 41 3e 20 6f 6e 20 65 61 |"377"></|A> on ea|
|00000750| 63 68 20 66 69 65 6c 64 | 20 77 68 6f 73 65 20 74 |ch field| whose t|
|00000760| 79 70 65 20 69 73 20 3c | 54 54 3e 53 43 4d 3c 2f |ype is <|TT>SCM</|
|00000770| 54 54 3e 20 69 6e 20 74 | 68 65 20 74 79 70 65 0a |TT> in t|he type.|
|00000780| 61 73 73 6f 63 69 61 74 | 65 64 20 64 61 74 61 2e |associat|ed data.|
|00000790| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 | This fu|nction i|
|000007a0| 73 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |s automa|tically |
|000007b0| 63 61 6c 6c 65 64 20 62 | 79 20 74 68 65 20 69 6e |called b|y the in|
|000007c0| 74 65 72 70 72 65 74 65 | 72 20 77 68 65 6e 0a 69 |terprete|r when.i|
|000007d0| 74 20 73 63 61 6e 73 20 | 61 6c 6c 20 74 68 65 20 |t scans |all the |
|000007e0| 75 73 65 64 20 63 65 6c | 6c 73 20 69 6e 20 74 68 |used cel|ls in th|
|000007f0| 65 20 47 43 20 6d 61 72 | 6b 69 6e 67 20 70 68 61 |e GC mar|king pha|
|00000800| 73 65 2e 0a 4f 6e 65 20 | 65 78 61 6d 70 6c 65 20 |se..One |example |
|00000810| 6f 66 20 3c 54 54 3e 67 | 63 5f 6d 61 72 6b 5f 66 |of <TT>g|c_mark_f|
|00000820| 63 74 3c 2f 54 54 3e 20 | 69 73 20 67 69 76 65 6e |ct</TT> |is given|
|00000830| 20 62 65 6c 6f 77 2e 20 | 0a 0a 3c 50 3e 0a 5b 67 | below. |..<P>.[g|
|00000840| 63 5f 73 77 65 65 70 5f | 66 63 74 5d 20 69 73 20 |c_sweep_|fct] is |
|00000850| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|00000860| 20 66 75 6e 63 74 69 6f | 6e 20 77 68 69 63 68 20 | functio|n which |
|00000870| 66 72 65 65 73 20 74 68 | 65 20 72 65 73 6f 75 72 |frees th|e resour|
|00000880| 63 65 73 0a 61 6c 6c 6f | 63 61 74 65 64 20 66 6f |ces.allo|cated fo|
|00000890| 72 20 72 65 70 72 65 73 | 65 6e 74 69 6e 67 20 74 |r repres|enting t|
|000008a0| 68 65 20 6e 65 77 20 74 | 79 70 65 20 6f 66 20 6f |he new t|ype of o|
|000008b0| 62 6a 65 63 74 2e 20 54 | 68 69 73 20 66 75 6e 63 |bject. T|his func|
|000008c0| 74 69 6f 6e 20 69 73 0a | 61 75 74 6f 6d 61 74 69 |tion is.|automati|
|000008d0| 63 61 6c 6c 79 20 63 61 | 6c 6c 65 64 20 62 79 20 |cally ca|lled by |
|000008e0| 74 68 65 20 47 43 20 69 | 6e 20 74 68 65 20 73 77 |the GC i|n the sw|
|000008f0| 65 65 70 69 6e 67 20 70 | 68 61 73 65 20 66 6f 72 |eeping p|hase for|
|00000900| 20 65 61 63 68 20 63 65 | 6c 6c 20 77 68 69 63 68 | each ce|ll which|
|00000910| 20 69 73 0a 75 6e 75 73 | 65 64 2e 20 0a 0a 3c 50 | is.unus|ed. ..<P|
|00000920| 3e 0a 5b 61 70 70 6c 79 | 5f 66 75 6e 63 74 69 6f |>.[apply|_functio|
|00000930| 6e 5d 20 69 73 20 61 20 | 70 6f 69 6e 74 65 72 20 |n] is a |pointer |
|00000940| 74 6f 20 61 20 66 75 6e | 63 74 69 6f 6e 20 77 68 |to a fun|ction wh|
|00000950| 69 63 68 20 69 73 20 63 | 61 6c 6c 65 64 20 77 68 |ich is c|alled wh|
|00000960| 65 6e 20 61 70 70 6c 79 | 69 6e 67 0a 74 68 69 73 |en apply|ing.this|
|00000970| 20 6f 62 6a 65 63 74 20 | 74 6f 20 61 20 6c 69 73 | object |to a lis|
|00000980| 74 20 6f 66 20 61 72 67 | 75 6d 65 6e 74 73 2e 20 |t of arg|uments. |
|00000990| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 63 | This fu|nction c|
|000009a0| 61 6e 20 6f 6e 6c 79 20 | 62 65 20 63 61 6c 6c 65 |an only |be calle|
|000009b0| 64 20 69 66 20 74 68 65 | 20 62 69 74 0a 45 58 54 |d if the| bit.EXT|
|000009c0| 5f 49 53 50 52 4f 43 20 | 69 73 20 73 65 74 2e 20 |_ISPROC |is set. |
|000009d0| 54 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 67 69 |The argu|ments gi|
|000009e0| 76 65 6e 20 74 6f 20 74 | 68 69 73 20 66 75 6e 63 |ven to t|his func|
|000009f0| 74 69 6f 6e 20 61 72 65 | 20 0a 65 76 61 6c 75 61 |tion are| .evalua|
|00000a00| 74 65 64 20 69 66 20 74 | 68 65 20 45 58 54 5f 45 |ted if t|he EXT_E|
|00000a10| 56 41 4c 50 41 52 41 4d | 20 62 69 74 20 69 73 20 |VALPARAM| bit is |
|00000a20| 73 65 74 2e 20 46 69 6e | 61 6c 6c 79 2c 20 74 68 |set. Fin|ally, th|
|00000a30| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 69 6e |e enviro|nment in|
|00000a40| 0a 77 68 69 63 68 20 74 | 68 65 20 63 61 6c 6c 20 |.which t|he call |
|00000a50| 69 73 20 64 6f 6e 65 20 | 69 73 20 70 61 73 73 65 |is done |is passe|
|00000a60| 64 20 61 73 20 74 68 65 | 20 74 68 69 72 64 20 61 |d as the| third a|
|00000a70| 72 67 75 6d 65 6e 74 20 | 6f 66 20 74 68 65 20 3c |rgument |of the <|
|00000a80| 54 54 3e 61 70 70 6c 79 | 5f 66 75 6e 63 74 69 6f |TT>apply|_functio|
|00000a90| 6e 3c 2f 54 54 3e 2e 20 | 49 74 20 73 65 72 76 65 |n</TT>. |It serve|
|00000aa0| 73 20 70 72 69 6e 63 69 | 70 61 6c 6c 79 20 77 68 |s princi|pally wh|
|00000ab0| 65 6e 20 74 68 65 20 3c | 54 54 3e 45 58 54 5f 45 |en the <|TT>EXT_E|
|00000ac0| 56 41 4c 50 41 52 41 4d | 3c 2f 54 54 3e 20 62 69 |VALPARAM|</TT> bi|
|00000ad0| 74 20 69 73 0a 75 6e 73 | 65 74 2e 0a 0a 3c 50 3e |t is.uns|et...<P>|
|00000ae0| 0a 53 65 74 20 74 68 65 | 20 3c 54 54 3e 61 70 70 |.Set the| <TT>app|
|00000af0| 6c 79 5f 66 75 6e 63 74 | 69 6f 6e 3c 2f 54 54 3e |ly_funct|ion</TT>|
|00000b00| 20 74 6f 20 4e 55 4c 4c | 20 74 6f 20 75 73 65 20 | to NULL| to use |
|00000b10| 74 68 65 20 69 6e 74 65 | 72 70 72 65 74 65 72 20 |the inte|rpreter |
|00000b20| 64 65 66 61 75 6c 74 20 | 61 70 70 6c 79 0a 66 75 |default |apply.fu|
|00000b30| 6e 63 74 69 6f 6e 2e 20 | 54 68 65 20 64 65 66 61 |nction. |The defa|
|00000b40| 75 6c 74 20 66 75 6e 63 | 74 69 6f 6e 20 72 61 69 |ult func|tion rai|
|00000b50| 73 65 73 20 61 6e 20 65 | 72 72 6f 72 20 77 68 65 |ses an e|rror whe|
|00000b60| 6e 20 63 61 6c 6c 65 64 | 2e 20 59 6f 75 20 63 61 |n called|. You ca|
|00000b70| 6e 20 75 73 65 20 74 68 | 65 0a 64 65 66 61 75 6c |n use th|e.defaul|
|00000b80| 74 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 65 6e 20 |t functi|on when |
|00000b90| 74 68 65 20 6e 65 77 20 | 74 79 70 65 20 79 6f 75 |the new |type you|
|00000ba0| 20 64 65 66 69 6e 65 20 | 69 73 20 6e 6f 74 20 61 | define |is not a|
|00000bb0| 20 66 75 6e 63 74 69 6f | 6e 2e 0a 0a 3c 50 3e 0a | functio|n...<P>.|
|00000bc0| 5b 64 69 73 70 6c 61 79 | 5f 66 63 74 5d 20 69 73 |[display|_fct] is|
|00000bd0| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 61 20 | a point|er to a |
|00000be0| 43 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 69 63 68 |C functi|on which|
|00000bf0| 20 64 69 73 70 6c 61 79 | 73 20 6f 62 6a 65 63 74 | display|s object|
|00000c00| 73 20 6f 66 20 74 68 65 | 0a 6e 65 77 20 74 79 70 |s of the|.new typ|
|00000c10| 65 2e 20 54 68 65 20 64 | 69 73 70 6c 61 79 20 66 |e. The d|isplay f|
|00000c20| 75 6e 63 74 69 6f 6e 20 | 68 61 73 20 74 68 72 65 |unction |has thre|
|00000c30| 65 20 70 61 72 61 6d 65 | 74 65 72 73 2e 20 54 68 |e parame|ters. Th|
|00000c40| 65 20 66 69 72 73 74 20 | 70 61 72 61 6d 65 74 65 |e first |paramete|
|00000c50| 72 20 69 73 20 74 68 65 | 0a 6f 62 6a 65 63 74 20 |r is the|.object |
|00000c60| 74 6f 20 70 72 69 6e 74 | 2e 20 54 68 65 20 73 65 |to print|. The se|
|00000c70| 63 6f 6e 64 20 70 61 72 | 61 6d 65 74 65 72 20 69 |cond par|ameter i|
|00000c80| 73 20 74 68 65 20 70 6f | 72 74 20 74 6f 20 77 68 |s the po|rt to wh|
|00000c90| 69 63 68 20 74 68 65 20 | 6f 62 6a 65 63 74 20 6d |ich the |object m|
|00000ca0| 75 73 74 20 62 65 0a 70 | 72 69 6e 74 65 64 2e 20 |ust be.p|rinted. |
|00000cb0| 50 72 69 6e 74 69 6e 67 | 20 61 6e 20 6f 62 6a 65 |Printing| an obje|
|00000cc0| 63 74 20 6d 75 73 74 20 | 62 65 20 64 6f 6e 65 20 |ct must |be done |
|00000cd0| 77 69 74 68 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |with one| of the |
|00000ce0| 66 6f 6c 6c 6f 77 69 6e | 67 20 66 75 6e 63 74 69 |followin|g functi|
|00000cf0| 6f 6e 73 0a 3c 55 4c 3e | 0a 3c 4c 49 3e 69 6e 74 |ons.<UL>|.<LI>int|
|00000d00| 20 20 53 54 6b 5f 67 65 | 74 63 28 46 49 4c 45 20 | STk_ge|tc(FILE |
|00000d10| 2a 66 29 3b 0a 3c 2f 4c | 49 3e 0a 3c 4c 49 3e 69 |*f);.</L|I>.<LI>i|
|00000d20| 6e 74 20 20 53 54 6b 5f | 75 6e 67 65 74 63 28 69 |nt STk_|ungetc(i|
|00000d30| 6e 74 20 63 2c 20 46 49 | 4c 45 20 2a 66 29 3b 0a |nt c, FI|LE *f);.|
|00000d40| 3c 2f 4c 49 3e 0a 3c 4c | 49 3e 69 6e 74 20 20 53 |</LI>.<L|I>int S|
|00000d50| 54 6b 5f 70 75 74 63 28 | 69 6e 74 20 63 2c 20 46 |Tk_putc(|int c, F|
|00000d60| 49 4c 45 20 2a 66 29 3b | 0a 3c 2f 4c 49 3e 0a 3c |ILE *f);|.</LI>.<|
|00000d70| 4c 49 3e 69 6e 74 20 20 | 53 54 6b 5f 70 75 74 73 |LI>int |STk_puts|
|00000d80| 28 63 68 61 72 20 2a 73 | 2c 20 46 49 4c 45 20 2a |(char *s|, FILE *|
|00000d90| 66 29 3b 0a 3c 2f 4c 49 | 3e 0a 3c 4c 49 3e 69 6e |f);.</LI|>.<LI>in|
|00000da0| 74 20 20 53 54 6b 5f 65 | 6f 66 28 46 49 4c 45 20 |t STk_e|of(FILE |
|00000db0| 2a 66 29 3b 0a 3c 2f 4c | 49 3e 0a 3c 2f 55 4c 3e |*f);.</L|I>.</UL>|
|00000dc0| 0a 54 68 6f 73 65 20 66 | 75 6e 63 74 69 6f 6e 73 |.Those f|unctions|
|00000dd0| 20 61 72 65 20 65 78 74 | 65 6e 73 69 6f 6e 73 20 | are ext|ensions |
|00000de0| 6f 66 20 74 68 65 69 72 | 20 43 20 65 71 75 69 76 |of their| C equiv|
|00000df0| 61 6c 65 6e 74 3a 20 74 | 68 65 79 20 61 72 65 20 |alent: t|hey are |
|00000e00| 61 62 6c 65 20 74 6f 20 | 68 61 6e 64 6c 65 20 74 |able to |handle t|
|00000e10| 68 65 0a 20 73 74 72 69 | 6e 67 20 70 6f 72 74 73 |he. stri|ng ports|
|00000e20| 2e 0a 0a 3c 50 3e 0a 54 | 68 65 20 74 68 69 72 64 |...<P>.T|he third|
|00000e30| 20 70 61 72 61 6d 65 74 | 65 72 20 6f 66 20 74 68 | paramet|er of th|
|00000e40| 65 20 3c 54 54 3e 64 69 | 73 70 6c 61 79 5f 66 63 |e <TT>di|splay_fc|
|00000e50| 74 3c 2f 54 54 3e 20 69 | 73 20 61 20 6d 6f 64 65 |t</TT> i|s a mode|
|00000e60| 20 63 6f 6e 73 74 61 6e | 74 20 77 68 69 63 68 20 | constan|t which |
|00000e70| 63 61 6e 20 74 61 6b 65 | 20 74 68 72 65 65 0a 64 |can take| three.d|
|00000e80| 69 66 66 65 72 65 6e 74 | 20 76 61 6c 75 65 73 2e |ifferent| values.|
|00000e90| 20 0a 0a 3c 55 4c 3e 0a | 3c 4c 49 3e 44 53 50 5f | ..<UL>.|<LI>DSP_|
|00000ea0| 4d 4f 44 45 20 69 73 20 | 75 73 65 64 20 77 68 65 |MODE is |used whe|
|00000eb0| 6e 20 74 68 65 20 6f 62 | 6a 65 63 74 20 6d 75 73 |n the ob|ject mus|
|00000ec0| 74 20 62 65 20 3c 45 4d | 3e 64 69 73 70 6c 61 79 |t be <EM|>display|
|00000ed0| 65 64 3c 2f 45 4d 3e 20 | 69 6e 20 61 0a 68 75 6d |ed</EM> |in a.hum|
|00000ee0| 61 6e 20 72 65 61 64 61 | 62 6c 65 20 66 6f 72 6d |an reada|ble form|
|00000ef0| 61 74 20 28 61 73 20 77 | 69 74 68 20 3c 54 54 3e |at (as w|ith <TT>|
|00000f00| 64 69 73 70 6c 61 79 3c | 2f 54 54 3e 29 3b 0a 3c |display<|/TT>);.<|
|00000f10| 2f 4c 49 3e 0a 3c 4c 49 | 3e 57 52 54 5f 4d 4f 44 |/LI>.<LI|>WRT_MOD|
|00000f20| 45 20 69 73 20 75 73 65 | 64 20 77 68 65 6e 20 74 |E is use|d when t|
|00000f30| 68 65 20 6f 62 6a 65 63 | 74 20 6d 75 73 74 20 62 |he objec|t must b|
|00000f40| 65 20 3c 45 4d 3e 77 72 | 69 74 74 65 6e 3c 2f 45 |e <EM>wr|itten</E|
|00000f50| 4d 3e 20 69 6e 20 61 0a | 6d 61 63 68 69 6e 65 20 |M> in a.|machine |
|00000f60| 72 65 61 64 61 62 6c 65 | 20 66 6f 72 6d 61 74 20 |readable| format |
|00000f70| 28 61 73 20 77 69 74 68 | 20 3c 54 54 3e 77 72 69 |(as with| <TT>wri|
|00000f80| 74 65 3c 2f 54 54 3e 29 | 3b 0a 3c 2f 4c 49 3e 0a |te</TT>)|;.</LI>.|
|00000f90| 3c 4c 49 3e 54 4b 5f 4d | 4f 44 45 20 69 73 20 75 |<LI>TK_M|ODE is u|
|00000fa0| 73 65 64 20 77 68 65 6e | 20 74 68 65 20 6f 62 6a |sed when| the obj|
|00000fb0| 65 63 74 20 6d 75 73 74 | 20 62 65 20 70 61 73 73 |ect must| be pass|
|00000fc0| 65 64 20 74 6f 20 61 20 | 54 6b 0a 63 6f 6d 6d 61 |ed to a |Tk.comma|
|00000fd0| 6e 64 2e 20 54 68 69 73 | 20 70 65 72 6d 69 74 73 |nd. This| permits|
|00000fe0| 20 74 6f 20 63 75 73 74 | 6f 6d 69 7a 65 20 74 68 | to cust|omize th|
|00000ff0| 65 20 77 61 79 20 61 20 | 53 63 68 65 6d 65 20 6f |e way a |Scheme o|
|00001000| 62 6a 65 63 74 20 69 73 | 20 63 6f 6e 76 65 72 74 |bject is| convert|
|00001010| 65 64 20 74 6f 20 61 0a | 73 74 72 69 6e 67 20 77 |ed to a.|string w|
|00001020| 68 65 6e 20 64 69 73 63 | 75 73 73 69 6e 67 20 77 |hen disc|ussing w|
|00001030| 69 74 68 20 74 68 65 20 | 54 6b 20 6c 69 62 72 61 |ith the |Tk libra|
|00001040| 72 79 2e 0a 3c 2f 4c 49 | 3e 0a 3c 2f 55 4c 3e 0a |ry..</LI|>.</UL>.|
|00001050| 3c 42 52 3e 3c 48 52 3e | 0a 3c 21 2d 2d 54 61 62 |<BR><HR>|.<!--Tab|
|00001060| 6c 65 20 6f 66 20 43 68 | 69 6c 64 2d 4c 69 6e 6b |le of Ch|ild-Link|
|00001070| 73 2d 2d 3e 0a 3c 41 20 | 49 44 3d 22 43 48 49 4c |s-->.<A |ID="CHIL|
|00001080| 44 5f 4c 49 4e 4b 53 22 | 3e 3c 53 54 52 4f 4e 47 |D_LINKS"|><STRONG|
|00001090| 3e 53 75 62 73 65 63 74 | 69 6f 6e 73 3c 2f 53 54 |>Subsect|ions</ST|
|000010a0| 52 4f 4e 47 3e 3c 2f 41 | 3e 0a 0a 3c 55 4c 3e 0a |RONG></A|>..<UL>.|
|000010b0| 3c 4c 49 3e 3c 41 20 4e | 41 4d 45 3d 22 74 65 78 |<LI><A N|AME="tex|
|000010c0| 32 68 74 6d 6c 31 32 33 | 22 20 48 52 45 46 3d 22 |2html123|" HREF="|
|000010d0| 6e 6f 64 65 31 39 5f 63 | 74 2e 68 74 6d 6c 22 20 |node19_c|t.html" |
|000010e0| 54 41 52 47 45 54 3d 22 | 63 6f 6e 74 65 6e 74 73 |TARGET="|contents|
|000010f0| 22 3e 3c 53 4d 41 4c 4c | 3e 4e 6f 74 65 3a 3c 2f |"><SMALL|>Note:</|
|00001100| 53 4d 41 4c 4c 3e 3c 2f | 41 3e 0a 3c 2f 55 4c 3e |SMALL></|A>.</UL>|
|00001110| 0a 3c 21 2d 2d 45 6e 64 | 20 6f 66 20 54 61 62 6c |.<!--End| of Tabl|
|00001120| 65 20 6f 66 20 43 68 69 | 6c 64 2d 4c 69 6e 6b 73 |e of Chi|ld-Links|
|00001130| 2d 2d 3e 0a 0a 3c 48 52 | 3e 0a 0a 3c 2f 42 4f 44 |-->..<HR|>..</BOD|
|00001140| 59 3e 0a 3c 2f 48 54 4d | 4c 3e 0a |Y>.</HTM|L>. |
+--------+-------------------------+-------------------------+--------+--------+